//
//  SC_Search_RoomModel.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/4/25.
//

import HandyJSON

struct SC_Search_RoomModel: HandyJSON {
    ///房间id
    var id : Int?
    
    ///房间封面
    var cover : String?
    
    ///派对房间封面图
    var cover2: String?
    
    ///派对房间gif封面图
    var gif_cover2: String?
    
    ///房间标题
    var title : String?
    
    /// 房主昵称
    var owner_nickname: String?
    
    //MARK: 自定义
    var type: SC_Search_ResultItemModel.SearchType?
}

extension SC_Search_RoomModel: APReuseView_M_Protocol {
    var reuseViewClass: AnyClass? {
        if type == .MANY_PEOPLE_ROOM {
            return SC_Search_PartyCell.self
        } else {
            return SC_Search_RoomCell.self
        }
    }
}
